<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>Generator</title>

</head>

<body>

    <script>

        function* fblq()

        {

            let [now,next]=[0,1];

            while(true)

            {

                yield now;

                [now,next]=[next,now+next];

               

            }

        }

        for(let i of fblq()){

            if(i>10000)break;

            console.log(i);

        }

    </script>

</body>

</html>